package main

import "fmt"
import "math/rand"
import "time"

func main() {

	var count int = 0

	for {
		rand.Seed(time.Now().UnixNano())
		n := rand.Intn(100) + 1
		count++
		if n == 99 {
			break
		}
	}
	fmt.Println("生成99一共使用了", count, "次")
}
